import axiosApi from '../AxiosApi.js'

const apiList = {
    query: '/platform/systemUserRole/query',
    saveUserRole: '/platform/systemUserRole/save/userRole'
}

export default {
    query(data) {
        return axiosApi({
            method: 'POST',
            headers: {'Content-Type': 'application/json;charset=UTF-8'},
            url: apiList.query,
            data
        })
    },
    saveUserRole(data) {
        return axiosApi({
            method: 'POST',
            headers: {'Content-Type': 'application/json;charset=UTF-8'},
            url: apiList.saveUserRole,
            data
        })
    }
}
